<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('修改会员积分')"/>
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-member-credit-edit" th:object="${member}">
        <input name="id" type="hidden" th:field="*{id}"/>
        <div class="form-group">
            <label class="col-sm-3 control-label">当前积分：</label>
            <div class="col-sm-4">
                <input class="form-control" type="number" name="oldCredit" th:value="*{credit}" disabled>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">调整积分：</label>
            <div class="col-sm-4">
                <input class="form-control" type="number" name="credit">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer"/>

<script type="text/javascript">
    var prefix = ctx + "back/shopMember";

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/editCredit", $('#form-member-credit-edit').serialize());
        }
    }
</script>
</body>
</html>
